import{withInstallDirective as e}from"@fast-china/utils";const t=e({mounted(e,t){if("function"!=typeof t.value)throw"callback must be a function";let l=null;e.__handleClick__=()=>{l&&clearTimeout(l),e.disabled||(e.disabled=!0,t.value(),l=setTimeout(()=>{e.disabled=!1},1e3))},e.addEventListener("click",e.__handleClick__)},beforeUnmount(e){e.removeEventListener("click",e.__handleClick__)}},"throttle");export{t as default,t as vThrottle};
//# sourceMappingURL=index.mjs.map
